#include <cstdio>
#define MAX(a,b) a>b?a:b
char c[5000][5001], n, m, i, j, k;
void read(){
	scanf("%d %d", &n, &m);
	for(i=0;i<n;i++)scanf("%s", c[i]);
}
void process(){
	
}
int main(){
	freopen("in.txt","r",stdin);freopen("out.txt","w",stdout);
	read();
	process();
	return 0;
}
